-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Reset password fixed #1083
Conversation
const { status } = req.body; | ||
|
||
// query fro updating | ||
const [err, result] = await to(answers.findOneAndUpdate({ _id: id }, { $set: { isApproved: status } })); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
const { status } = req.body; | ||
|
||
// query fro updating | ||
const [err, result] = await to(question.findOneAndUpdate({ _id: id }, { $set: { isApproved: status } })); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
|
||
const [err, admin] = await to(Admin.findByIdAndDelete(id)); | ||
const [err, admin] = await to(Admin.findByIdAndDelete(id)); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
|
||
delete data.id; | ||
|
||
const [err, result] = await to(Broadcast.findOneAndUpdate({ _id: req.body.id }, { $set: data })); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
|
||
delete data.id; | ||
|
||
const [err, result] = await to(Broadcast.findOneAndUpdate({ _id: req.body.id }, { $set: data })); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
|
||
router.post('/', validation(JoinUsValidationSchema), postJoinUs); | ||
router.get('/', authMiddleware, getJoinUs); | ||
router.delete('/deleteJoinUs',deleteJoinUs) | ||
router.delete('/deleteJoinUs', deleteJoinUs); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
@@ -21,6 +21,6 @@ | |||
router.get('/getTeamMembers/', getTeamMembers); | |||
router.get('/getTeamMember/:id', getTeamMemberById); | |||
router.post('/addTeamMember', authMiddleware, upload.single('image'), addTeam); | |||
router.put('/updateTeamMember',authMiddleware,upload.single('image'),updateTeamMember); | |||
router.delete("/deleteTeamMember",authMiddleware,deleteTeamMember); | |||
router.put('/updateTeamMember', authMiddleware, upload.single('image'), updateTeamMember); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
@@ -21,6 +21,6 @@ | |||
router.get('/getTeamMembers/', getTeamMembers); | |||
router.get('/getTeamMember/:id', getTeamMemberById); | |||
router.post('/addTeamMember', authMiddleware, upload.single('image'), addTeam); | |||
router.put('/updateTeamMember',authMiddleware,upload.single('image'),updateTeamMember); | |||
router.delete("/deleteTeamMember",authMiddleware,deleteTeamMember); | |||
router.put('/updateTeamMember', authMiddleware, upload.single('image'), updateTeamMember); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
This route handler performs
a database access
router.put('/updateTeamMember',authMiddleware,upload.single('image'),updateTeamMember); | ||
router.delete("/deleteTeamMember",authMiddleware,deleteTeamMember); | ||
router.put('/updateTeamMember', authMiddleware, upload.single('image'), updateTeamMember); | ||
router.delete('/deleteTeamMember', authMiddleware, deleteTeamMember); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
router.put('/updateTeamMember',authMiddleware,upload.single('image'),updateTeamMember); | ||
router.delete("/deleteTeamMember",authMiddleware,deleteTeamMember); | ||
router.put('/updateTeamMember', authMiddleware, upload.single('image'), updateTeamMember); | ||
router.delete('/deleteTeamMember', authMiddleware, deleteTeamMember); |
Check failure
Code scanning / CodeQL
Missing rate limiting High
a database access
This route handler performs
a file system access
Hey @Kajol-Kumari Please review the request :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 52 file changes, this pr has a lot of unnecessary changes, can u please clean it?
- The build is failing please fix it.
When i changed particular file within a folder that shows as the entire folder were changed that is the reason why 52 files were changed |
You can add particular files only under using |
Okay let me close the current pr and raise new one |
Issue that this pull request solves
Closes: #989
Proposed changes
Reset password functionality added as per given requirement
Screenshots
bandicam.2024-07-28.19-35-11-525.mp4